﻿@model IEnumerable<MegaSportsStore.Domain.MegaEntities.MegaProduct>

@{
    ViewBag.Title = "Products";
}

@if (Model != null && Model.Count() > 0)
{
    foreach (var p in Model)
    {
        Html.RenderPartial("MegaProductSummary", p);
    }
}
else
{
    <div class="item">
        <h2>@ViewBag.Message</h2>
    </div>
}
